{% extends "base.html" %}

{% block content %}
<style>
  /* Hero container */
  .hero {
      text-align: center;
      padding: 2rem 1rem;
      background-color: #fff;
      color: #333;
  }

  .hero img {
      width: 90%;
      max-width: 900px;
      margin-bottom: 1rem;
  }

  .hero h1 {
      margin-bottom: 0.75rem;
      font-size: 2.2rem;
      font-weight: bold;
      color: #000000;
  }

  .hero p {
      margin-bottom: 1rem;
      color: #000000;
  }

  /* Badge rows */
  .badge-row {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 10px;
      flex-wrap: wrap;
  }

  .badge-row a img {
      height: 25px;
      width: auto;
      max-width: 100%;
  }

  /* Media queries for mobile */
  @media (max-width: 768px) {
      .hero img {
          width: 100%;
          max-width: 100%;
      }
      .hero h1 {
          font-size: 1.8rem;
      }
      .hero p {
          font-size: 0.9rem;
      }
      .badge-row a img {
          height: 20px;
      }
      .badge-row {
          gap: 5px;
      }
  }

  @media (max-width: 480px) {
      .badge-row a img {
          height: 18px;
      }
  }
</style>

<div class="hero">
  <img src="{{ 'assets/overview.jpg' | url }}" width="700" height="500" alt="Overview of Rankify">
  <h1>Rankify</h1>
  <p>A powerful Python toolkit for Retrieval, Re-Ranking, and Retrieval-Augmented Generation. By integrating cutting-edge techniques and modular components, it simplifies the process of searching, sorting, and leveraging external knowledge for efficient question answering, document retrieval, and text generation tasks.






  </p>

  <!-- First Row: 5 Badges -->
  <div class="badge-row">
    <a href="https://arxiv.org/abs/2502.02464" target="_blank">
      <img src="https://img.shields.io/badge/arXiv-b5212f.svg?logo=arxiv" alt="ArXiv">
    </a>
    <a href="https://huggingface.co/datasets/abdoelsayed/reranking-datasets" target="_blank">
      <img src="https://img.shields.io/badge/%F0%9F%A4%97%20HuggingFace%20Datasets-27b3b4.svg" alt="HuggingFace Datasets">
    </a>
    <a href="https://huggingface.co/datasets/abdoelsayed/reranking-datasets-light" target="_blank">
      <img src="https://img.shields.io/badge/%F0%9F%A4%97%20HuggingFace%20Datasets%20light-orange.svg" alt="HF Light">
    </a>
    <a>
      <img alt="Python Version" src="https://img.shields.io/badge/Python-3.10_3.11-blue">
    </a>
    <a href="https://opensource.org/license/apache-2-0">
      <img src="https://img.shields.io/static/v1?label=License&message=Apache-2.0&color=red" alt="Apache 2.0">
    </a>
  </div>

  <!-- Second Row: 4 Badges -->
  <div class="badge-row">
    <a href="https://pepy.tech/projects/rankify" target="_blank">
      <img src="https://static.pepy.tech/badge/rankify" alt="PyPI Downloads">
    </a>
    <a href="https://github.com/DataScienceUIBK/rankify/releases" target="_blank">
      <img alt="GitHub release" src="https://img.shields.io/github/release/DataScienceUIBK/rankify.svg?label=Version&color=orange">
    </a>
    <a href="{{ 'getting-started' | url }}">
      <img src="https://img.shields.io/badge/Get%20Started-blue?style=flat&logo=bookstack" alt="Get Started">
    </a>
    <a href="https://github.com/DataScienceUIBK/Rankify" target="_blank">
      <img src="https://img.shields.io/badge/GitHub-100000?style=flat&logo=github&logoColor=white" alt="GitHub">
    </a>
  </div>
</div>

{% endblock %}
